package jeye.utils;

import java.util.ArrayList;
import java.util.List;

import javax.media.CaptureDeviceInfo;
import javax.media.CaptureDeviceManager;
import javax.media.format.VideoFormat;

public class DeviceUtils {

	@SuppressWarnings("unchecked")
	public static List<CaptureDeviceInfo> getVideoCaptureDevices() {
		List<CaptureDeviceInfo> devices = new ArrayList<CaptureDeviceInfo>();
		
		devices.addAll(CaptureDeviceManager.getDeviceList(new VideoFormat(VideoFormat.RGB)));
		
		return devices;
	}
	
}
